package br.uvv.sao.dao;

import java.util.List;

import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;

import br.uvv.sao.domain.AlunoOferta;
import br.uvv.sao.util.DAOException;

@SuppressWarnings("unchecked")
public class AlunoOfertaDAO extends DAO {
	
	private static final long serialVersionUID = 5083971758200067944L;

	public List<AlunoOferta> listar(Long idOfertaDisciplina) throws DAOException {
		return list(AlunoOferta.class, null, Order.asc("id"), Restrictions.eq("ofertaDisciplina.id", idOfertaDisciplina));
	}
}